package com.icesoft.generation.vo;

import com.icesoft.framework.core.binding.annotation.BindEntityList;
import com.icesoft.generation.entity.GenDtoField;
import com.icesoft.generation.entity.GenField;
import com.icesoft.generation.entity.GenTable;
import com.icesoft.generation.entity.GenVoField;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.List;

@Getter
@Setter
@Accessors(chain = true)
public class GenTableVO extends GenTable {

	@BindEntityList(entity = GenField.class, condition = "this.id=table_id")
	private List<GenFieldVO> fields;

	@BindEntityList(entity = GenDtoField.class, condition = "this.id=table_id")
	private List<GenDtoFieldVO> dtoFields;

	@BindEntityList(entity = GenVoField.class, condition = "this.id=table_id")
	private List<GenVoFieldVO> voFields;

}
